package cn.com.biz;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.com.dao.GuanLiYuanDao;
import cn.com.entity.GuanLiYuan;

public class GuanLiYuanBiz {
	
	private GuanLiYuanDao glyd;
	public GuanLiYuanDao getGlyd() {
		return glyd;
	}
	public void setGlyd(GuanLiYuanDao glyd) {
		this.glyd = glyd;
	}
	
	public boolean guanLiLogin(String uname,String upwd){
		ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
		glyd=(GuanLiYuanDao)ctx.getBean("glyDao");
		boolean b=glyd.guanLiLogin(uname, upwd);
		return b;
	}

}
